import Vue from "vue";
import Vuex from 'vuex'
import tabs from './modules/tabs'

import { home, mall, user, other } from "@/router/modules";
const routeList = [home, mall, user, other];

Vue.use(Vuex)


const state = {
    routeList,
  };
  
  const getters = {
    adminRoutes: (state) => state.routeList,
  };
//创建实例
export default new Vuex.Store({
    state,
  getters,
    modules: {
        tabs
    }
})

